//
//  HomePageFriendBtnsView.h
//  CToolBox
//
//  Created by crj on 16/8/29.
//  Copyright © 2016年 oyf. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, YJHomePageFooterViewBtn) {//按钮tag
    
    YJHomePageFooterViewBtnAddFriend,             //加为好友
    YJHomePageFooterViewBtnMoveFriendInBlack,     //拉黑
    YJHomePageFooterViewBtnMoveFriendOutBlack,    //取消拉黑
    YJHomePageFooterViewBtnChat                   //私聊
};

typedef NS_ENUM(long, YJHomePageFooterViewBtnType) {
    
    YJHomePageFooterViewBtnTypeNone,    //无关系
    YJHomePageFooterViewBtnTypeFriend,  //好友
    YJHomePageFooterViewBtnTypeBlack    //黑名单
};

@protocol YJHomePageFooterViewDelegate <NSObject>

- (void)homePageFooterViewSelectIndex:(NSInteger)selectIndex;

@end

@interface YJHomePageFooterView : UIView

@property (nonatomic, assign) id<YJHomePageFooterViewDelegate> delegate;
//@property (nonatomic, assign) BOOL isFriend;
@property (nonatomic, assign) YJHomePageFooterViewBtnType relation;//关系


- (instancetype)initWithFrame:(CGRect)frame relation:(long)relation;


@end
